function fnAddHover(totalColumn){
	$('td').hover(function(){
		var col = $(this).index();
		var row = $(this).parent().parent().children().index($(this).parent());
		//alert('Row: ' + row + ', Column: ' + col);
		if(col != 0){										
			var childrenTd = $(this).parent().children();
			var highlightClass = "";
			if((row+1)%2==1)
				highlightClass = "highlight-even";
			else
				hightlightClass = "highlight-odd";
			for(i=1;i<totalColumn;i++)
				childrenTd.eq(i).addClass(hightlightClass);
		}
	},
	function(){
	  	var childrenTd = $(this).parent().children();
		for(i=1;i<5;i++){
			childrenTd.eq(i).removeClass("highlight-odd");
			childrenTd.eq(i).removeClass("highlight-even");
		}
	});	
}

function fnAddClick(){
	$('td').click(function(){
		var col = $(this).index();
		if(col != 0){
			var mailId = $(this).parent().children().eq(0).children().eq(0).val();
			//alert(mailId);
			location.href="Read.action?mailId="+mailId;	
		}
	});
}